﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<SelectListItem>>" %>
<%@ Import Namespace="Chowpoo.Util" %>
<% var minType = ViewData["minType"].ToString();
   var type = ViewData["type"].CheckByte(1);
   var isIcon = ViewData["isIcon"].CheckInt(0);
   %>
<tr>
    <td height="120" align="center" valign="top" background="<%=ResolveUrl("~/Content/images/3_20.jpg") %>">
    <% foreach(var item in Model){%>
        <table width="200" height="24" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="24" class="style6">
                    &nbsp;
                </td>
                <td width="152" class="style15">
                    <div align="center">
                        <a class="<%=item.Value==minType?"style30":"style29" %>" href="<%=Url.Action("Index","Resources",new{type=type,minType=item.Value,isIcon}) %>"><%=item.Text %></a></div>
                </td>
                <td width="24" class="style15">
                    &nbsp;
                </td>
            </tr>
        </table>
        <table width="216" height="1" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="17">
                </td>
                <td width="184" background="<%=ResolveUrl("~/Content/images/3.gif") %>">
                </td>
                <td width="15">
                </td>
            </tr>
        </table>
        <%}  %>
    </td>
</tr>
